package org.androssh;

import org.androssh.util.HelpTopicView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * @author Kenny Root
 * 
 */
public class HelpTopicActivity extends Activity {
	public final static String TAG = "androssh.HelpActivity";

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.act_help_topic);

		String topic = getIntent().getStringExtra(Intent.EXTRA_TITLE);

		this.setTitle(String.format("%s: %s - %s",
				getResources().getText(R.string.app_name), getResources()
						.getText(R.string.title_help), topic));

		HelpTopicView helpTopic = (HelpTopicView) findViewById(R.id.topic_text);

		helpTopic.setTopic(topic);
	}
}
